
#include "Variable.h"

Variable::Variable(long length, float *data, int samplerate){

	this->length = length;
	this->data = data;
	this->samplerate = samplerate;

}
void Variable::init(){

}


void Variable::setvariablerate(std::vector<VariablePoint> list){
	this->listRatePoint = list;
}

void  Variable::addRate(float rate, long pos){

	this->listRatePoint.push_back(VariablePoint());
	this->listRatePoint.back().ratio = rate;
	this->listRatePoint.back().pos = pos;
}